<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
.box{
  position: fixed;
  width: 100px;
  height: 100px;
  left: 50%+100px;
  right: 50%;
  top: 50%+100px;
  bottom: 50%;
  background-color: rgb(102, 97, 97);
}

</style>
<!-- 
<script src="http://cdn.bootcss.com/jquery/1.12.3/jquery.min.js"></script>
<script src="layer/layer.js"></script> -->
<body>
   
  <div class="box"></div>
</body>
<script>
//  layer.open({
//         type: 1,
//         title: false,
//         closeBtn: 0,
//         shadeClose: true,
//         skin: 'yourclass',
//         content: '自定义HTML内容'
//       });

</script>
</html>